﻿package mortal.game.view.lotteryDraw
{
    import Message.DB.Tables.*;
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.resource.tableConfig.*;
    import mortal.game.view.common.*;

    public class lotteryDrawIcon extends ActionToolTipIcon
    {
        private static var _instance:lotteryDrawIcon;

        public function lotteryDrawIcon(param1:String)
        {
            super(param1);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            disEventName = EventName.LotteryDrawShow;
            this.name = "lotteryDrawIcon";
            this.toolTipData = this.getToolTip;
            return;
        }// end function

        private function getToolTip()
        {
            var _loc_1:* = PlayerModelConfig.instance.getModelShowById(101000);
            var _loc_2:* = new LotteryDrawTipsData();
            _loc_2.tModelShow = _loc_1;
            return _loc_2;
        }// end function

        override public function playEffect(param1:String = "ActionIconEffect.swf") : void
        {
            super.playEffect(param1);
            return;
        }// end function

        override public function get width() : Number
        {
            return 56;
        }// end function

        override public function get height() : Number
        {
            return 54;
        }// end function

        public static function get instance() : lotteryDrawIcon
        {
            if (!_instance)
            {
                _instance = new lotteryDrawIcon(ResFileConst.lotteryDrawIcon);
            }
            return _instance;
        }// end function

        public static function hasInstance() : Boolean
        {
            return _instance != null;
        }// end function

    }
}
